package com.han.decorator;

/**
 * @ClassName FastFood
 * @Description 快餐类——抽象构件角色
 * @Author duoduo Han
 * @Date 2024/6/6 21:20
 */
public abstract class FastFood {
    private float price;//价格
    private String desc;//描述

    public abstract float cost();

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
